package OOPS;

import java.io.*;

class Test49 {
	public static void main(String str[]) throws Exception {
		Hello8 h = null;
		System.out.println("--- Refrence Created ---");
		h = new Hello8();
		File f = new File("Hello8.class");
		f.delete();
		System.out.println("verify Hello8.class is deleted or not & press Enter");
		System.in.read();
		h.show();
		new Hello8();
		new Hello8(12).show();
		new Hello8("jlc").show();
		new Hello8(72, "Sri").show();
	}
}

class Hello8 {
	int ab;
	String str;
	{
		System.out.println("~~ instance block of Hello8 ~~");
	}
	static {
		System.out.println("~~ static block of Hello8 ~~");
	}

	Hello8() {
	}

	Hello8(int ab, String str) {
		this.ab = ab;
		this.str = str;
	}

	Hello8(int ab) {
		this.ab = ab;
	}

	Hello8(String str) {
		this.str = str;
	}

	void show() {
		System.out.println("** show in Hello8 **");
		System.out.println(ab + "\t" + str);
	}
}